// var data = JSON.parse(localStorage.getItem("data"));



describeBook()
function describeBook() {
    $('.section-box').html('');
        var content =  `
         <div class="section-left">
            <div class="section-left-img item">${parent.DescribeData.img}</div>
            <div class="section-left-title item">${data[i].bookName}</div>
            <div class="section-left-abstract item">
                <div>
                    <h3 class="section-left-abstract-h">简介</h3>
                    <p class="section-left-abstract-p">
                         ${parent.DescribeData.description}
                    </p>
                </div>
            </div>
            <div class="section-left-author item clear">
                <div class="section-left-author-left">作者</div>
                <div class="section-left-author-right">
                    ${data[i].bookAuthor}
                </div>
            </div>
            <div class="section-left-position item clear">
                <div class="section-left-author-left">书架位置</div>
                <div class="section-left-author-right">
                    ${data[i].bookPublish}
                </div>
            </div>
            <div class="section-left-count item clear" style="margin-bottom: 0">
                <div class="section-left-author-left">借阅次数</div>
                <div class="section-left-author-right">
                    4000
                </div>
            </div>
        </div>
        <div class="section-right">
            <div>图书介绍</div>
            <hr>
            <p class="section-right-p">
                ${parent.DescribeData.description}
            </p>
           
            <div class="section-right-img"></div>
        </div>
        `
    $('.section-box').append(content);
}




var navRight = document.getElementsByClassName('nav-right')[0];
navRight.onclick = function pageJump() {
    var url = location.href;
    url = url.substring(0, url.lastIndexOf("/"));
    window.location.href = `${url}/dxm-index.html`;
}